<!--
 * Created by PhpStorm.
 * User: jackhhy
 * Date: 2019/7/17-10:46
 * Link: https://gitee.com/luckygyl/LuckyAdmin
 * FileName: add_link.html
 **************************************************************
 *                                                            *
 *   .=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-.       *
 *    |                     ______                     |      *
 *    |                  .-"      "-.                  |      *
 *    |                 /            \                 |      *
 *    |     _          |              |          _     |      *
 *    |    ( \         |,  .-.  .-.  ,|         / )    |      *
 *    |     > "=._     | )(__/  \__)( |     _.=" <     |      *
 *    |    (_/"=._"=._ |/     /\     \| _.="_.="\_)    |      *
 *    |           "=._"(_     ^^     _)"_.="           |      *
 *    |               "=\__|IIIIII|__/="               |      *
 *    |              _.="| \IIIIII/ |"=._              |      *
 *    |    _     _.="_.="\          /"=._"=._     _    |      *
 *    |   ( \_.="_.="     `--------`     "=._"=._/ )   |      *
 *    |    > _.="                            "=._ <    |      *
 *    |   (_/                                    \_)   |      *
 *    |                                                |      *
 *    '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-='      *
 *                                                            *
 *                    JUST FIND YOUR BUG !                    *
 **************************************************************
 *-->

{include file="public/open_head" /}

<div class="ok-body" >

    <div class="layui-fluid" >

        <form action=""class="layui-form"  style="margin-top: 20px;" >

                    <div class="layui-form-item " style=""  lay-filter="example">
                        <label class="layui-form-label" >网站名称：</label >
                        <div class="layui-input-block input-custom-width" >
                            <input type="text" name="name" value="" placeholder="请输入网站名称" lay-verify="required" lay-verType="tips" lay-reqText="请输入网站名称" autocomplete="off"  class="layui-input name" >
                        </div >
                    </div >

                    <div class="layui-form-item " style="" >
                        <label class="layui-form-label" >网站地址：</label >
                        <div class="layui-input-block input-custom-width" >
                            <input type="text" name="href" value="" placeholder="网站地址需 http://" lay-verify="required|url" lay-verType="tips" lay-reqText="请输入网站地址" autocomplete="off"  class="layui-input href" >
                        </div >
                    </div >

                    <input type="hidden" name="id" value=""  class="id">

                    <div class="layui-form-item " style="" >
                        <label class="layui-form-label" >站长邮箱：</label >
                        <div class="layui-input-block input-custom-width" >
                            <input type="text" name="email" value="" placeholder="站长邮箱"  autocomplete="off"  class="layui-input email" >
                        </div >
                    </div >

                    <div class="layui-form-item">
                        <label class="layui-form-label">是否显示：</label>
                        <div class="layui-input-block">
                            <select name="status" class="userGrade" lay-filter="userGrade">
                                <option value="1" >显示</option>
                                <option value="2">不显示</option>

                            </select>
                        </div>
                    </div>

                    <?php echo Form::Submit('add','立即提交');?>

        </form >

    </div >


</div >


<script >
    layui.use(['element', 'form', 'jquery', 'upload'], function () {
        var element = layui.element;
        var table = layui.table;
        var form = layui.form;
        var $ = layui.jquery;
        var upload = layui.upload;

        /**
         * 提交表单数据
         */
        form.on('submit(add)', function (data) {
            FormSubmit("{:url('module/addLink')}", data.field, "table_id", 1);
            return false;
        });
    })
</script >


</body>
</html>
